package com.project.junM.controller;

import com.project.junM.entity.TVaccinDept;
import com.project.junM.service.TVaccinDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/vaccinDept")
public class VaccinDeptController {

    @Autowired
    private TVaccinDeptService tVaccinDeptService;

    @GetMapping("queryVaccinDeptAll")
    public List<TVaccinDept> queryVaccinDeptAll(){
        return tVaccinDeptService.queryVaccinDeptAll();
    }

    @GetMapping("querySetCount")
    public List<TVaccinDept> querySetCount(Integer setCount){
        return tVaccinDeptService.querySetCount(setCount);
    }


}
